package com.yami.shop.admin.config;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;


@Component
public class AdminAppGlobals {

    //当前开发环境
    public static String active;
    public static String active_dev="dev";
    public static String active_test="test";
    public static String active_prod="prod";

    //二次登录验证
    public static Boolean gauth;

    @Value("${spring.profiles.active}")
    public void setActive(String active) {
        AdminAppGlobals.active = active;
    }

    @Value("${myapp.gauth}")
    public void setGauth(Boolean gauth) {
        AdminAppGlobals.gauth = gauth;
    }

}
